#ifndef INC_FAN_H
#define INC_FAN_H

#ifdef __cplusplus
extern "C" {
#endif

#include <string.h>

#include "main.h"
#include "OLED.h"
#include "tD.h"

#include "adc.h"
#include "usart.h"
#include "tim.h"

# define NUMBER_OF_GEARS (10)
# define DEFAULT_GEAR (1)
# define DEFAULT_MODE (1)

void FanButton(uint16_t);

void FanSetup(void);

void FanLoop(void);

void FanUARTRxCpltCallback(void);

void ReceiveControl(void);

#ifdef __cplusplus
}
#endif

#endif //INC_FAN_H
